﻿@using TinyMoocSite.ViewModels
@model UserDetailForm

@{
    ViewBag.Title = "账户信息";
    Layout = "~/Views/Shared/DefaultLayout.cshtml";
}

@section FullContainer
{
    <div class="col-sm-offset-3 col-sm-6">
        <h3 class="text-center">查看和修改账户信息</h3>
        <form role="form" action="/Default/UpdateUserInfo" method="post" class="update-form form-horizontal">            
            <div class="form-group">
                <label for="form-username" class="col-sm-3 control-label">用户名</label>
                <div class="col-sm-9">
                    <input type="text" name="Username" class="form-control" id="form-username" value="@Model.Username" readonly>
                </div>
            </div>
            <div class="form-group">
                <label for="form-fullname" class="col-sm-3 control-label">真实姓名</label>
                <div class="col-sm-9">
                    <input type="text" name="MyFullName" class="form-control" id="form-fullname" value="@Model.MyFullName" readonly>
                </div>
            </div>
            <div class="form-group">
                <label for="form-license-id" class="col-sm-3 control-label">学号或工号</label>
                <div class="col-sm-9">
                    <input type="text" name="MyLicenseId" class="form-control" id="form-license-id" value="@Model.MyLicenseId" readonly>
                </div>
            </div>
            <div class="form-group">
                <label for="form-privilege" class="col-sm-3 control-label">身份</label>
                <div class="col-sm-9">
                    <input type="text" name="Privilege" class="form-control" id="form-privilege" value="@Model.Privilege" readonly>
                </div>
            </div>
            <div class="form-group">
                <label for="form-email" class="col-sm-3 control-label">电子邮箱</label>
                <div class="col-sm-9">
                    <input type="text" name="Email" class="form-control" id="form-email" value="@Model.Email">
                </div>
            </div>
            <div class="form-group">
                <label for="form-website" class="col-sm-3 control-label">个人主页</label>
                <div class="col-sm-9">
                    <input type="text" name="Website" class="form-control" id="form-website" value="@Model.Website">
                </div>
            </div>
            <div class="form-group">
                <label for="form-prof-title" class="col-sm-3 control-label">教师职称</label>
                <div class="col-sm-9">
                    <input type="text" name="ProfTitle" class="form-control" id="form-prof-title" value="@Model.ProfTitle">
                </div>
            </div>
            <div class="form-group">
                <label for="form-memo" class="col-sm-3 control-label">我的口号</label>
                <div class="col-sm-9">
                    <input type="text" name="Memo" class="form-control" id="form-memo" value="@Model.Memo">
                </div>
            </div>
            <div class="form-group">
                <label for="form-register-date" class="col-sm-3 control-label">注册日期</label>
                <div class="col-sm-9">
                    <input type="text" name="RegisterDate" class="form-control" id="form-register-date" value="@Model.RegisterDate" readonly>
                </div>
            </div>
            <div class="form-group">
                <label for="form-last-activity-date" class="col-sm-3 control-label">上次活动日期</label>
                <div class="col-sm-9">
                    <input type="text" name="LastActivityDate" class="form-control" id="form-last-activity-date" value="@Model.LastActivityDate" readonly>
                </div>
            </div>

            <br /><br />
            <div class="text-center">
                <button type="submit" class="btn btn-default">更新信息</button>
                &nbsp;&nbsp;
                <button type="button" class="btn btn-default" onclick="history.back();">返回账户管理</button>
            </div>            
            <br /><br />
        </form>
    </div>
}

